<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>华为云IoTDA与鸿蒙应用系列文档</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: #f5f7fa;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        header {
            background-color: #0066cc;
            color: white;
            padding: 30px 0;
            text-align: center;
            border-radius: 0 0 20px 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        h1 {
            margin: 0;
            font-size: 2.5em;
        }
        .subtitle {
            margin-top: 10px;
            font-weight: normal;
        }
        .card-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-top: 30px;
        }
        .card {
            background-color: white;
            width: calc(50% - 20px);
            margin-bottom: 30px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
        }
        .card-image {
            width: 100%;
            height: 180px;
            background-size: cover;
            background-position: center;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            transform: translateZ(0);
            backface-visibility: hidden;
            border-bottom: 1px solid #eee;
        }
        .card-content {
            padding: 20px;
        }
        .card h2 {
            margin-top: 0;
            color: #0066cc;
            border-bottom: 2px solid #eaeaea;
            padding-bottom: 10px;
        }
        .card p {
            color: #666;
            margin-bottom: 20px;
        }
        .btn {
            display: inline-block;
            background-color: #0066cc;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }
        .btn:hover {
            background-color: #0055aa;
        }
        footer {
            text-align: center;
            margin-top: 30px;
            padding: 20px;
            color: #666;
            border-top: 1px solid #eaeaea;
        }
        #img1 {
            background-image: url('./图片/图片1/图片1.jpg');
        }
        #img2 {
            background-image: url('./图片/图片2/图片1.png');
        }
        #img3 {
            background-image: url('./图片/图片3/图片1.png');
        }
        #img4 {
            background-image: url('./图片/图片4/图片1.png');
        }
        #img5 {
            background-image: url('./图片/图片5/图片1.png');
        }
    </style>
</head>
<body>
    <header>
        <div class="container">
            <h1>华为云IoTDA与鸿蒙应用系列文档</h1>
            <p class="subtitle">完整的华为云设备接入服务与鸿蒙应用连接教程</p>
        </div>
    </header>

    <div class="container">
        <div class="card-container">
            <div class="card">
                <div class="card-image" id="img1"></div>
                <div class="card-content">
                    <h2>一、华为云设备接入服务IoTDA</h2>
                    <p>学习华为云IoTDA服务的基础知识，创建产品和设备，设置自定义模型和服务。</p>
                    <a href="./页面/一、华为云设备接入服务IoTDA.html" class="btn">查看详情</a>
                </div>
            </div>
            
            <div class="card">
                <div class="card-image" id="img2"></div>
                <div class="card-content">
                    <h2>二、真实设备连接</h2>
                    <p>了解如何将真实硬件设备连接到华为云IoTDA服务，配置MQTT参数，实现设备控制。</p>
                    <a href="./页面/二、真实设备连接.html" class="btn">查看详情</a>
                </div>
            </div>
            
            <div class="card">
                <div class="card-image" id="img3"></div>
                <div class="card-content">
                    <h2>三、模拟设备连接</h2>
                    <p>使用MQTTX工具模拟设备连接，避免硬件烧录的等待时间，快速测试设备功能。</p>
                    <a href="./页面/三、模拟设备连接.html" class="btn">查看详情</a>
                </div>
            </div>
            
            <div class="card">
                <div class="card-image" id="img4"></div>
                <div class="card-content">
                    <h2>四、模拟应用连接</h2>
                    <p>使用MQTT工具模拟应用连接，配置数据转发规则，测试应用与云平台的通信。</p>
                    <a href="./页面/四、模拟应用连接.html" class="btn">查看详情</a>
                </div>
            </div>
            
            <div class="card">
                <div class="card-image" id="img5"></div>
                <div class="card-content">
                    <h2>五、鸿蒙应用连接</h2>
                    <p>学习如何在HarmonyOS应用中使用MQTT协议连接华为云IoTDA服务，实现应用控制。</p>
                    <a href="./页面/五、鸿蒙应用连接.html" class="btn">查看详情</a>
                </div>
            </div>
        </div>
    </div>

    <footer>
        <div class="container">
            <p>华为云IoTDA与鸿蒙应用系列文档 &copy; 2024</p>
        </div>
    </footer>
</body>
</html>
